<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
<html>
<body>
<script type="text/javascript">
$(document).ready(function(){
	$("#sceneType").val(${sceneType});
});
</script>
<jsp:include page="_head_room.jsp"></jsp:include>
<form class="form-inline" action="" method="get">
类型：<select class="input-small" name="sceneType" id="sceneType">
		  	<option value="0" selected >0-k歌房</option>
		  	<option value="1">1-个人房</option>
		  	<option value="2">2-家族房</option>
		  	<option value="-1">-全部房-</option>
</select>
场景id：<input type="text" placeholder="只用于查询8月16号之后的数据" name="sceneId" value="${sceneId}"/>&nbsp;&nbsp;
从
  <div class="datepicker input-append">
    <input data-format="yyyy-MM-dd" type="text" value="${beginDate}" name="beginDate"></input>
    <span class="add-on">
      <i data-time-icon="icon-time" data-date-icon="icon-calendar">
      </i>
    </span>
  </div>
  到
  <div class="datepicker input-append">
    <input data-format="yyyy-MM-dd" type="text" value="${endDate}" name="endDate"></input>
    <span class="add-on">
      <i data-time-icon="icon-time" data-date-icon="icon-calendar">
      </i>
    </span>
  </div>
  <input type="hidden" name="isFirst" value="1"/>
  <button type="submit" class="btn">查询</button>
</form>
<div>
	<p>
		<span>K币礼物总消耗：${allGold}</span>
	</p>
	<p>
		<span>分贝礼物消耗：${allSilver}</span>
	</p>
</div>
<table class="table table-bordered">
  <thead>
    <tr>
      <th>序号</th>
      <th>商品id</th>
      <th>商品名称</th>
      <th>销售数量</th>
      <th>K币-单价</th>
      <th>分贝-单价</th>
      <th>K币合计</th>
      <th>分贝合计</th>
    </tr>
  </thead>
  <tbody>
  <c:forEach var="m" items="${detailList}" varStatus="vs">
    <tr>
      <td>${vs.count}</td>
      <td>${m.giftId}</td>
      <td>${m.name}</td>
      <td>${m.sellCount}</td>
      <td>${m.goldPrice}</td>
      <td>${m.silverPrice}</td>
      <td>${m.goldTotal}</td>
      <td>${m.silverTotal}</td>
    </tr>
  </c:forEach>
  </tbody>
</table>
<tags:page1 page="${page}" pageSize="${pageSize }" total="${total }" url="?beginDate=${beginDate}&endDate=${endDate}&sceneId=${sceneId }&sceneType=${sceneType }&page="/>
</body>
</html>